/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function $(id) {
    return document.getElementById(id);
}

String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
    return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
    return this.replace(/\s+$/,"");
}
